import request from '@/utils/request'
export default {
  // 登录
  login(data) {
    return request({ url: '/api/user/login', method: 'post', data: data });
  },

  register(data) {
    return request({ url: '/api/user/register ', method: 'post', data: data });
  },
  getCode(data) {
    return request({ url: '/api/user/getCode', method: 'get', params: data });
  },
  getOrderFoodPage(data){
    return request({ url: '/api/orderFood/getOrderFoodPage', method: 'post', data: data });
  },
  setPlaceOrder(data){
    return request({ url: '/api/placeOrder/setPlaceOrder', method: 'post', data: data });
  },
  updateUserInfo(data){
    return request({ url: '/api/user/upduser', method: 'post', data: data });
  },
  getMenuList(data){
    return request({ url: '/api/v1/menu/orderMenuPage', method: 'post', data: data });
  },
  getUserInfo(){
    return request({ url: '/api/user/me', method: 'get'});
  }
}
